package com.symaster.backups.model;

import com.symaster.backups.enumerate.PathType;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Entity;
import javax.persistence.Index;
import javax.persistence.Table;

/**
 * @author yinmiao
 * @version 2024/2/18
 */
@Entity
@Table(name = "bk_file_system_monitor_backup_item", indexes = {
        @Index(name = "ind_file_system_monitor_id", columnList = "fileSystemMonitorId"),
        @Index(name = "ind_patent", columnList = "patent"),
        @Index(name = "ind_path_name", columnList = "pathName")
})
@Getter
@Setter
public class FileSystemMonitorBackupItemModel extends BaseModel {

    /**
     * FileSystemMonitorModel ID
     */
    private Integer fileSystemMonitorId;
    /**
     * 父目录ID
     */
    private Integer patent;
    /**
     * 路径名称
     */
    private String pathName;
    /**
     * 最后修改时间
     */
    private Long lastModified;
    /**
     * 路径类型
     * {@link PathType}
     */
    private Integer pathType;
    /**
     * 备份文件所在路径
     */
    private String backupFile;

}
